package com.easy.mapper;

import com.easy.bean.Department;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentDao {
    int add(Department department);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Department department);
    Department one(@Param("id") Integer id);
    List<Department> all(
            @Param("name") String name,
            @Param("description") String description
    );
    int pageCount(@Param("param")Department department);
    List<Department> page(@Param("page") Page page, @Param("param") Department department);
}